package com.atguigu.gateway.controller;

import com.atguigu.common.utils.R;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@RefreshScope
public class TestController {

    @GetMapping("/test")
    public R test() {
        return R.ok().put("name", "test");
    }

}
